package com.expert.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @ClassName: EmailMessageUtil
 * @Author: cxs
 * @Date: 2024/03/26 18:08
 * @Description:
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmailMessageUtil {
    String expertName;
    String projectName;
    String projectLocation;
    String time;

    public static String projectReExtractMessage(String expertName, String projectName, String format, String projectReviewLocation) {
        return "<p>\t<strong>"+expertName+",</strong>\n" +
                "\t原计划于<u style=\"color: rgb(230, 0, 0);\">"+format+"</u>" +
                "在<u style=\"color: rgb(230, 0, 0);\">"+projectReviewLocation+"</u>进行评审工作的项目<strong>《"+projectName+"》</strong>，" +
                "因由于项目调整，所以重新抽取专家，原评审邀请作废，很抱歉给您带来不便。\n" +
                "</p>";
    }

    /**
     * 取消
     * @param expertName
     * @param projectName
     * @param format
     * @param projectLocation
     * @return
     */
    public static String projectCancelExtractMessage(String expertName, String projectName, String format, String projectLocation) {
        return "<p>\t<strong>"+expertName+",</strong>\n" +
                "\t原计划于<u style=\"color: rgb(230, 0, 0);\">"+format+"</u>" +
                "在<u style=\"color: rgb(230, 0, 0);\">"+projectLocation+"</u>进行评审工作的项目<strong>《"+projectName+"》</strong>，" +
                "因由于项目调整，抽取结果取消，原评审邀请作废，很抱歉给您带来不便。\n" +
                "</p>";
    }

    public String message(){
        return "<p>\t<strong>"+expertName+",</strong>\n" +
                "\t项目<strong>《"+projectName+"》</strong>将于<u style=\"color: rgb(230, 0, 0);\">"+time+"</u>" +
                "在<u style=\"color: rgb(230, 0, 0);\">"+projectLocation+"</u>进行评审工作，" +
                "您被抽取为项目评审专家，现邀请您加入评审工作，请您在<span style=\"color: rgb(230, 0, 0);\">1天内</span>登录专家库管理系统查看处理评审邀请。超过时间将自动拒绝。\n" +
                "</p>";

    }

    public static String projectCancelMessage(String expertName,String projectName,String time,String projectLocation){
        return "<p>\t<strong>"+expertName+",</strong>\n" +
                "\t原计划于<u style=\"color: rgb(230, 0, 0);\">"+time+"</u>" +
                "在<u style=\"color: rgb(230, 0, 0);\">"+projectLocation+"</u>进行评审工作的项目<strong>《"+projectName+"》</strong>，" +
                "因故取消，很抱歉给您带来不便。\n" +
                "</p>";
    }

}
